package phone.qyg.com.qyg.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 作者：lblbh on 2017/12/14 10:07
 * 邮箱：lanbuhan@163.com
 * 功能：我的活动列表
 */

public class MyActivity implements Parcelable {


    /**
     “id”:1 //报名id
     "actId":"赛事活动",        //活动id
     “title”:”内蒙古体育馆”,   //活动名称
     “status”:1  //活动状态值
     “statusName”:”预约中”    //活动状态名称
     “color”:”#000000”  //活动状态颜色
     “startTime”’2017-11-18’     //开始时间
     “fixImgUrl”:”http://domain:port/data/2017/04/13/223.jpg” //缩略图
     “isSign”:0//是否可取消报名 0可以 1不可以
     */

    public int id;
    public int actId;
    public int status;
    public int isSign;
    public int isClick;
    public String color;
    public String title;
    public String fixImgUrl;
    public String startTime;
    public String statusName;

    public MyActivity() {}


    @SuppressWarnings("unchecked")
    public MyActivity(Parcel in) {
        id = in.readInt();
        actId = in.readInt();
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(id);
        dest.writeInt(actId);
    }


    public static final Creator<MyActivity> CREATOR = new Creator<MyActivity>() {
        @Override
        public MyActivity[] newArray(int size) {
            return new MyActivity[size];
        }

        @Override
        public MyActivity createFromParcel(Parcel in) {
            return new MyActivity(in);
        }
    };

}
